/**
 * Copyright (c) 2015-2030 by Beijing Yanlight Co., Ltd.
 * All rights reserved.
 */
package com.yanlight.app.dal.dao;

import java.util.Collection;
import java.util.List;

import com.yanlight.app.dal.entity.AdminBind;

/**
 * 
 * @author haolw
 * @time 2018/04/09
 */
public interface AdminBindDAO {

	AdminBind findByUserId(Integer userId);

	List<AdminBind> findByUserIds(Collection<Integer> userIds);

	AdminBind findByPaycodeId(Integer paycodeId);

	List<AdminBind> findByPaycodeIds(Collection<Integer> paycodeIds);

	void save(AdminBind bind);

	void bindPaycode(Integer userId, Integer codeId);

	void unBindPaycode(Integer id);

}
